from Base import message, intersect, SS_VALID
from DRG import MDCC_DRG

def group(record):
  adrg_zd = []
  adrg_zd1 = []
  adrg_ss = ["11.3200","11.6000x002","11.6000x003","11.6100","11.6200x002","11.6200x003","11.6300x001","11.6300x002","11.6400x001","11.6400x002","11.6900x001","11.6900x003","11.6901","11.6902","11.7300x001"]
  adrg_ss1 = []
  dept_list = []

  if True and record.ssList and record.ssList[0] in adrg_ss:
    message('符合CB1入组条件，匹配规则：主手术匹配')

    if MDCC_DRG.CB19_group(record):
      return 'CB19'
        
    return 'CB1'
  else:
    return ''
    
